import React from 'react';
import { Route, Switch, Redirect } from 'react-router-dom';
 
import App from './../App';
 
import Login from './../containers/Login';
import Test from './../containers/Test';
import Home from './../containers/Home';
import Main from './../containers/Main';
import NoPage from './../containers/NoPage'; 
import Address from './../pages/Address/address'; 
const Root = () => (
   <div>
      <Switch>
         <Route path="/" render={props => (
               <App>
                  <Switch>
                     <Route path="/" exact component={Address} />
                     <Route path="/home" exact component={Home} />
                     <Route path="/test" exact component={Test} />
                     <Route path="/login" exact component={Login} />
                     <Route path="/main" component={Main} />
                      <Route component={NoPage}/>
                  </Switch>
               </App>
            )}
         />
      </Switch>
   </div>
);
 
export default Root;